<?php
/**
 * User: aka
 * Time: 1:04
 */

namespace app\validate\riven;


use think\Validate;

class SendRiven extends Validate
{
    protected $rule =   [
        'stuff_name|物品名称' => 'require|min:1|max:40|token',
        'unit_price|单价' => 'number',
        'num|数量' => 'number',
        'rank|等级' => 'number',
        'entry_1|词条1' => 'max:20',
        'entry_2|词条2' => 'max:20',
        'entry_3|词条3' => 'max:20',
        'entry_4|词条4' => 'max:20'
    ];
}